package org.blog.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "博客门类表")
@TableName(value = "blog_category")
public class BlogCategory extends BaseColumn {
    @ApiModelProperty(value = "分类表主键")
    @TableId(value = "id")
    private String id;

    @ApiModelProperty(value = "分类名称")
    @TableField(value = "category_name")
    private String categoryName;

    @ApiModelProperty(value = "分类描述")
    @TableField(value = "category_description")
    private String categoryDescription;

    @ApiModelProperty(value = "该分类下的文章数量")
    @TableField(value = "essay_count")
    private Integer essayCount;

    @ApiModelProperty(value = "封面图片")
    @TableField(value = "cover_image")
    private String coverImage;
}

